package order

import (
	"crmeb-common/global"
	"math/big"
	"time"
)

// RechargeOrder 充值订单表
type RechargeOrder struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:充值用户UID"`

	OrderNo string `json:"orderNo" gorm:"column=order_no;comment:订单号"`

	Price big.Float `json:"price" gorm:"column=price;comment:充值金额"`

	GivePrice big.Float `json:"givePrice" gorm:"column=give_price;comment:购买赠送金额"`

	PayType string `json:"payType" gorm:"column=pay_type;comment:支付方式:weixin,alipay"`

	PayChannel string `json:"payChannel" gorm:"column=pay_channel;comment:支付渠道：public-公众号,mini-小程序，h5-网页支付,wechatIos-微信Ios，wechatAndroid-微信Android,alipay-支付包，alipayApp-支付宝App"`

	Paid bool `json:"paid" gorm:"column=paid;comment:是否充值"`

	PayTime time.Time `json:"payTime" gorm:"column=pay_time;comment:充值支付时间"`

	OutTradeNo string `json:"outTradeNo" gorm:"column=out_trade_no;comment:支付服务方订单号"`

	Avatar string `json:"avatar" gorm:"column=avatar;comment:头像"`

	Nickname string `json:"nickname" gorm:"column=nickname;comment:昵称"`

	IsWechatShipping bool `json:"isWechatShipping" gorm:"column=is_wechat_shipping;comment:是否上传微信发货管理"`
}
